package team.knowers.qzhserver.subject.subject.entity.dao;

import com.baomidou.mybatisplus.annotation.*;
import lombok.*;
import team.knowers.qzhserver.common.entity.BaseDO;


import java.io.Serial;
import java.util.Date;

/**
 * 专业subject表对应实体类
 * @author xtg
 * @date 2024/1/20 0:18
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName(SubjectDOField.TABLE_NAME)
public class SubjectDO extends BaseDO {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 专业id
     */
    @TableId(value = SubjectDOField.ID, type = IdType.ASSIGN_ID)
    private String id;
    /**
     * 专业名称
     */
    @TableField(SubjectDOField.NAME)
    private String name;
    /**
     * 专业介绍
     */
    @TableField(SubjectDOField.DESCRIPTION)
    private String description;
    /**
     * 专业背景图
     */
    @TableField(SubjectDOField.BACKGROUND)
    private String background;
    /**
     * 专业信息创建时间
     */
    @TableField(value = SubjectDOField.GMT_CREATE, fill = FieldFill.INSERT)
    private Date gmtCreate;
    /**
     * 专业信息修改时间
     */
    @TableField(value = SubjectDOField.GMT_MODIFIED, fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;
    /**
     * 专业封面
     */
    @TableField(SubjectDOField.COVER)
    private String cover;

    //TODO:DTO，VO相关转换
}
